package com.sgcc.nrxt.crmdemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Contract)实体类
 *
 * @author makejava
 * @since 2023-10-30 10:12:30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("contract")
public class Contract implements Serializable {
    private static final long serialVersionUID = -15639240446532870L;
    /**
     * 主键
     */
    @TableField("id")
    private Integer id;
    /**
     * 用户id
     */
    @TableField("userId")
    private Integer userId;
    /**
     * 客户id
     */
    @TableField("customId")
    private Integer customId;
    /**
     * 合同编号
     */
    @TableField("code")
    private String code;
    /**
     * 合同名称
     */
    @TableField("name")
    private String name;
    /**
     * 合同金额
     */
    @TableField("amount")
    private Integer amount;
    /**
     * 合同状态
     */
    @TableField("status")
    private String status;
    /**
     * 合同文件
     */
    @TableField("file")
    private String file;
    /**
     * 合同类型
     */
    @TableField("category")
    private String category;
    /**
     * 关联产品
     */
    @TableField("relatedProduct")
    private String relatedProduct;
    /**
     * 签订人
     */
    @TableField("signedPerson")
    private String signedPerson;
    /**
     * 签订时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("signedTime")
    private String signedTime;
    /**
     * 到期时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("expireTime")
    private String expireTime;
    /**
     * 付款方式
     */
    @TableField("paymentWay")
    private String paymentWay;
    /**
     * 预付款
     */
    @TableField("advanceCharge")
    private Integer advanceCharge;
    /**
     * 备注
     */
    @TableField("note")
    private String note;

}

